package day05;

import java.util.Scanner;

import day05.Study;

public class Test {
public static void main(String[] args) {
//	//调用study class下的空参构造
//	study s = new study();
//	//不能调用无返回类型的方法
//	s.study();
	
	Study sc =new Study("学号","姓名","班级","性别");
	//获取姓名
	System.out.println(sc.getName());
	//修改姓名后再次获得姓名
	sc.setName("姓名1");
	System.out.println(sc.getName());
	Scanner in = new Scanner(System.in);
	System.out.println("手动输入姓名");
	String a = in.nextLine();
	sc.setName(a);
	System.out.println(sc.getName());
	
	Computer sale = new Computer(1,"品牌","2","2");
	//
	MaiComputer a1 =new MaiComputer();
	a1.sale(sale);
	System.out.println("卖电脑的id"+sale.getId()+"卖电脑的品牌"+sale.getPingpai());
in.close();
}
	
}
